package com.mymain.demo.util;

/**
 * Author : JiangLinHan
 * Date : 2019/4/10
 * Time : 11:39
 * 全局返回类——描述了状态、信息、数据
 **/
public class Result {
    private Integer state;
    private String msg;
    private Object data;

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Result(Integer state, String msg, Object data) {
        this.state = state;
        this.msg = msg;
        this.data = data;
    }

    public Result(Integer state, String msg) {
        this.state = state;
        this.msg = msg;
    }

    public Result() {
        this.state=200;
        this.msg="成功";
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
